package kr.hkit.powerjava.chapter14.work;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class Programming02_panel extends JPanel {
	private JPanel panel;
	private JTextField tfpricnipal;// 원금
	private JLabel lblNewLabel;

	public String getTfpricnipal() {
		return tfpricnipal.getText();
	}

	public void setTfpricnipal(String text) {
		tfpricnipal.setText(text);
	}

	public Programming02_panel(String text) {
		initialize(text);
	}

	private void initialize(String text) {
		panel = new JPanel();
		add(panel);

		lblNewLabel = new JLabel(text);
		panel.add(lblNewLabel);
		tfpricnipal = new JTextField();
		panel.add(tfpricnipal);
		tfpricnipal.setColumns(10);
	}

}
